{% extends "base.html" %}

{% block script %}
    <script src="/static/js/cms2/topic.js"></script>
{% end %}

{% block settings %}
    {% set menu_selected = 'topic' %}
{% end %}

{% block main %}
<div class="main_hd">
    <h2>话题</h2>

    <div class="title_tab" id="topTab">
        <ul class="tab_navs title_tab" data-index="0">
        <li data-index="0" class="tab_nav first js_top selected" data-id="send"><a href="/cms2/topic">话题管理</a></li>
        <li data-index="1" class="tab_nav js_top" data-id="list"><a href="/cms2/topic/gallery">轮播图规则</a></li>
        </ul>
    </div>
    <div class="extra_info search_bar" id="searchBar">
        <span class="frm_input_box search with_del append ">
            <a class="del_btn jsSearchInputClose" href="javascript:" style="display:none">
                <i class="icon_search_del"></i>&nbsp;
            </a>
            <a href="javascript:" class="frm_input_append jsSearchInputBt">
                <i class="icon16_common search_gray">搜索</i>&nbsp;
            </a>
        <input type="text" value="" class="frm_input jsSearchInput" placeholder="消息内容">
        </span>
    </div>
</div>
<div class="main_bd">
    <div class="topic-box">
        <div class="new-topic">
            <input id="new-topic-title" type="text" class="frm_input" placeholder="标题">
            <div class="new-topic-line clearfix">
                <div class="new-topic-left">
                    <select class="prov-id">
                    </select>
                </div>
                <div class="new-topic-right">
                    <input id="new-topic-content" type="text" class="frm_input" placeholder="描述">
                </div>
            </div>
            <div class="new-topic-tip">添加图片</div>
            <div class="uploader">
                <form action="#" id="drop" class="dropzone">
                </form>
            </div>

            <div class="nt-submit-box">
                <button type="button" class="btn nt-submit">提交</button><span class="btn-decorate"></span>
            </div>
        </div>
        <select id="show-provid" class="prov-id">
        </select>
        <div class="show-container">

        </div>
        <div class="more-topic-box">
            <button type="button" class="btn btn_small more-topic">更多</button>
        </div>
    </div>
</div>
{% end %}

{% block template %}
<script type="text/template" id="topic-manage-template">
    <div class="t-panel">
        <div class="t-panel-heading">
            <div class="t-panel-title">
                标题：<%- title %>
            </div>
            <div class="t-edit-box">
热度: <span class="status"><span class="text-success"><%- hot %></span></span>
            <button type="button" class="btn t-edit-btn">编辑</button>
            </div>
        </div>
        <div class="topic-line clearfix">
            <div class="topic-left">
                频道：<%- channel %>
            </div>
            <div class="topic-right">
                描述：<%- summary %>
            </div>
        </div>
        <div class="padding-box">
            <a href="#" class="show-img">显示图片<span class="down-triangle"></span></a>
        </div>
        <div class="padding-box index-img-box" style="display: none">
            <img class="index-img" data-src="<%- imglink %>">
        </div>
        <div class="padding-box">话题id：<%- topicid %></div>
        <div class="padding-box">
            <a href="/cms2/topic/note?topicid=<%- topicid %>" class="">查看note</a>
        </div>
    </div>
</script>
{% end %}